package com.service;

import com.Result.ResultData;
import com.entity.Person;

public interface PersonService {
    int addPerson(Person person);
    int updatePerson(Person person);
    Person getPersonById(int user_id);
    Person getPersonByName(String user_name);
    int countPersonNum();
    int deletePerson(Person person);

    ResultData Register(String user_name,String user_password,int user_sex,int user_age,
                        String user_pro,String user_hobby);
    ResultData Login(String user_name,String user_password);
}
